package com.eric.service;

import cn.dev33.satoken.util.SaResult;
import com.eric.domain.po.User;
import com.mybatisflex.core.service.IService;

/**
 *  服务层。
 *
 * @author eric.deng
 * @since 2025-03-05
 */
public interface UserService extends IService<User> {

    SaResult getAllUserListByPageService(Integer cur, Integer pageSize);

    SaResult getAllUserCountsService();

    SaResult getOneById(Long id);

    SaResult getListByNameService(String name, Integer cur, Integer pageSize);

    SaResult getCountByName(String name);

    SaResult getUserByBetweenTimesService(String startTime, String endTime,Integer cur,Integer pageSize);

    SaResult getCountByBetweenTimeService(String startTime, String endTime);
}
